home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 October / EnigmA AMIGA RUN 22 (1997)(G.R. Edizioni)(IT)[!][issue 1997-10 & 11][EAR-CD VI].iso / recent2 / scaler.lha / dmakefile next >
Makefile  |  1997-09-07  |  1KB  |  67 lines

  1. #
  2. # The name of the tool.
  3. #
  4. TOOL = scaler
  5.  
  6. #
  7. # The source files that you need to build the tool.
  8. #
  9. MYSRCS = scaler.c
  10.  
  11. MYHDRS = myheader.h
  12.  
  13. #
  14. # You might want to tinker with the compiler flags and libraries.
  15. #
  16. # -3.0    - Compile for a 3.0 system (optional)
  17. # -mc    - Small code model
  18. # -md    - Small data model
  19. #
  20. CFLAGS = -3.0 -mc -md
  21.  
  22. #
  23. # Required libraries
  24. #
  25. # amiga30s.lib    - The small code version of the Amiga library
  26. # cs.lib    - The small code version of the C library
  27. #
  28. LIBS =    amiga30s.lib cs.lib
  29.  
  30. #
  31. # You shouldn't have to touch anything below here.
  32. #
  33. # (FYI: (It's important that toolstart.c gets listed first... toolstart.o
  34. #  has to be the first thing mentioned when the tool is linked
  35. #  together.)
  36. #
  37. PTOOL = $(TOOL).ptool
  38. README = $(TOOL).readme
  39. ARCHIVE = $(TOOL).lha
  40.  
  41. SRCS = toolstart.c $(MYSRCS)
  42. OBJS = $(SRCS:*.c:*.o)
  43.  
  44. all: $(PTOOL)
  45.  
  46. $(PTOOL):    $(OBJS)
  47.     dlink $(OBJS) $(LIBS) -o $(PTOOL)
  48.  
  49. $(OBJS):    $(SRCS)
  50.     dcc $(CFLAGS) -c %(right) -o %(left)
  51.  
  52. # I use emacs, so I tend to have a lot of backup files ending in ``!''
  53. # lying around. 
  54. clean:
  55.     delete $(OBJS) *!
  56.  
  57. clobber:    clean
  58.     delete $(PTOOL) $(ARCHIVE)
  59.  
  60. distribution:    $(ARCHIVE)
  61.  
  62. $(ARCHIVE):    clobber $(PTOOL) clean
  63.     lha a $(ARCHIVE) dmakefile $(PTOOL) $(MYHDRS) $(MYSRCS) $(README)
  64.  
  65.  
  66.  
  67.